package cn.auction.entity;

import java.io.Serializable;
import java.util.Date;

public class AuctionRecord implements Serializable {
    private static final long serialVersionUID = -533138167857479261L;
    //竞拍记录编号
    private Long id;
    //竞拍者编号
    private Long userId;
    //拍卖品编号
    private Long auctionId;
    //竞价时间
    private Date auctionTime;
    //竞拍价格
    private Double auctionPrice;
    /**
     * 添加俩个对象字段
     */
    private Auction auction;

    private AuctionUser auctionUser;

    public AuctionRecord() {
    }

    public AuctionRecord(Auction auction, Date auctionTime, Double auctionPrice) {
        this.auction = auction;
        this.auctionTime = auctionTime;
        this.auctionPrice = auctionPrice;
    }

    public AuctionRecord(Auction auction, AuctionUser auctionUser, Date auctionTime, Double auctionPrice) {
        this.auction = auction;
        this.auctionUser = auctionUser;
        this.auctionTime = auctionTime;
        this.auctionPrice = auctionPrice;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getAuctionId() {
        return this.auctionId;
    }

    public void setAuctionId(Long auctionId) {
        this.auctionId = auctionId;
    }

    public Auction getAuction() {
        return this.auction;
    }

    public void setAuction(Auction auction) {
        this.auction = auction;
    }

    public AuctionUser getAuctionUser() {
        return this.auctionUser;
    }

    public void setAuctionUser(AuctionUser auctionUser) {
        this.auctionUser = auctionUser;
    }

    public Date getAuctionTime() {
        return this.auctionTime;
    }

    public void setAuctionTime(Date auctionTime) {
        this.auctionTime = auctionTime;
    }

    public Double getAuctionPrice() {
        return this.auctionPrice;
    }

    public void setAuctionPrice(Double auctionPrice) {
        this.auctionPrice = auctionPrice;
    }
}
